<template>
	<view class="scroll">
		<scroll-view class="list-scroll" scroll-y>
			<view>
				<slot></slot>
			</view>
		</scroll-view>
	</view>
</template>

<script>
	export default {
		name: "list-scroll",
		data() {
			return {

			};
		}
	}
</script>

<style lang="scss">
	.scroll {
		flex: 1;
		overflow: hidden;
		box-sizing: border-box;

		//5-9.3.14  这一段着实是有些没看懂。意思就是没有下面的不能滚动，
		//但是加了list-scroll就可以滚动了
		.list-scroll {
			height: 100%;
			display: flex;
			flex-direction: column;
		}
	}
</style>